Creating Offline Web Applications in Macromedia Central
Table of Contents
Testing Your Central Application
This example app has some flaws, as I have not added some checking scenarios that might arise—but go ahead and test it anyway. Start with the product.xml file.
Type the URL of the product.xml file in the URL combo box and click Enter. Does the beginning of the XML appear underneath the combo box?
Figure 1. Testing the XML file
Switch Central to offline mode. With the URL of your product.xml still in the combo box click the Add button. The "file not available" image appears.
Figure 2. Your application in the offline mode
- Switch back to online mode. Central adds the file to your cache. Select the file from the combo box. It will appear as it did before.
- Switch back to offline mode and select the file. Your application will display the cached file where it previously displayed the "file not found" message before.
- Experiment with other supported file types by entering the file URLs. Notice that when you enter a URL outside of your application’s domain, a pop-up window appears—this is Central as it requests permission to access a specific domain—a good security measure.
Additional Resources
- Macromedia Central SDK
- Caching Data Locally - LiveDocs Documentation
- Macromedia Central Development Quick Start Guide
- Macromedia Central Developer Center
- Macromedia Central Web Forums